import Vue from 'vue'

import 'normalize.css/normalize.css' 

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'

import VueBMap from 'vue-bmap-gl';
import 'vue-bmap-gl/dist/style.css'
import 'echarts-gl'

//用户权限
import "@/utils/auth.js";
import drag from "@/utils/drag"

Vue.use(ElementUI)

// 自定义全局组件
import Empty from '@/components/index'
Vue.use(Empty);
import modelBox from '@/components/modelbox/index.vue'
Vue.component('modelBox',modelBox)
import Echart from './components/echart/index.vue'
Vue.component('Echart',Echart)
import dataV from '@jiaminghi/data-view'
Vue.use(dataV)

Vue.config.productionTip = false

const app = new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})

Vue.use(VueBMap);
VueBMap.initBMapApiLoader({
  ak: 'ZHGeKB7kGNGAqOAxo41mijEvWTqGaemL',
  v: '2.0'
});

// http接口API
import httpApi from '@/api/http.api.js'
Vue.prototype.$api = httpApi

import datavApi from '@/api/http.datav.js'
Vue.prototype.$datav = datavApi

app.$mount()
